﻿// Version:1
// Author:Sanket Naik
// Date:July-21-2010 
// Comments:
// 
// 
// 

namespace ManagedServices.SubService.Common
{
    /// <summary>
    /// The Interface representing the core interface that needs to be implemented 
    /// for Hosting a Managed Service in the ManagedServicesFramework  
    /// </summary>
    public interface IManagedService
    {
        /// <summary>
        /// The Method to Kickstart the Managed Service Instance
        /// </summary>
        void OnStart();

        /// <summary>
        /// The Method to stop the Managed Service Instance
        /// </summary>
        void OnStop();

        /// <summary>
        /// This Ping is from the Managed Service Host to Monitor if the Service is Alive and is able to Process Request
        /// </summary>
        /// <returns>returns whther the Service is Active or Not </returns>
        bool Ping();
    }
}